package com.icart.repositories;


import com.icart.entities.WoCommentitemEntity;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Repository
@Scope("prototype")
public interface CommentitemRepository extends BaseRepository<WoCommentitemEntity,Integer> {
    @Transactional
    @Query(nativeQuery = true,value = "insert into wo_commentitem(commid,itemid,oid,objid,commstar) values(?1,?2,?3,?4,?5)")
    @Modifying(clearAutomatically = true)

    Integer insert(Long commid,Integer itemid,String oid,Long objid,Integer commstar);
}
